using Game.Main.Model;
using UnityEngine;

namespace Game.Component
{
	public class VendingMachineItem : BaseItem
	{
		public override void Init(ItemArchiveData data)
		{
			base.Init(data);
		}

		public Vector3 GetCreatePosition()
		{
			Transform transform = model.Find("CreatePoint");
			Vector3 position;
			if (transform != null)
			{
				position = transform.position;
			}
			else
			{
				position = base.transform.position;
				Trace.LogError(base.itemData.id + "未配置创建点");
			}
			return position;
		}
	}
}
